#/bin/bash

wld="/home/ycf/workloads"

db="orderkv"
dbTest="../../../build/test/ycsb/ycsb"
output="orderkv_exp_output.txt"
workload="${wld}/load_2GB.spec"
moreworkloads="${wld}/scan_1000.spec"

#workload="../workloads/ycf/load_2GB.spec"
#moreworkloads="../workloads/ycf/scan_1000.spec:../workloads/ycf/update_2GB.spec:../workloads/ycf/scan_1000.spec"
#moreworkloads="../ycsb/workloads/my/run_update_5G.spec:../ycsb/workloads/my/run_get_10G.spec:../ycsb/workloads/my/run_range_256K.spec:../ycsb/workloads/my/run_update_50G.spec:../ycsb/workloads/my/run_get_10G.spec:../ycsb/workloads/my/run_range_256K.spec:../ycsb/workloads/my/run_range_1M.spec:../ycsb/workloads/my/run_range_5M.spec"

cmd="rm -rf $output /tmp/test_orderkv"
echo $cmd
eval $cmd
cmd="nohup $dbTest -db $db -threads 1 -load true -P $workload -morerun $moreworkloads > $output 2>&1 &"
echo $cmd
eval $cmd
echo "=======================$db end======================="
